package com.culture.bootdemo.common.exception;

import com.culture.bootdemo.common.basevo.ResultCode;

/**
 * @author wen
 * @date 2018/1/22 15:10
 * @Description:  可自定义异常信息
 */
public class PermissionsException extends RuntimeException {
    private Integer code;

    public PermissionsException(ResultCode r) {
        super(r.getMsg());
        this.code = r.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
